package com.yyi.springcloud.entities;

import java.util.List;

/**
 * dataTables前端组件分页pojo
 * 
 * @Description:
 * @author 高杨
 * @date 2018年8月10日 下午2:46:13
 */
public class DataTablesPage<T> {

	// 1.draw 第几页
	private int draw;
	// 2.总条数
	private Long recordsTotal;
	// 3.过滤后的总数
	private Long recordsFiltered;
	// 4.数据
	private List<T> data;
	private int length;

	public DataTablesPage(int draw, Long recordsTotal, Long recordsFiltered, List<T> data, int length) {
		this.draw = draw;
		this.recordsTotal = recordsTotal;
		this.recordsFiltered = recordsFiltered;
		this.data = data;
		this.length = length;
	}

	public int getDraw() {
		return draw;
	}

	public void setDraw(int draw) {
		this.draw = draw;
	}

	public Long getRecordsTotal() {
		return recordsTotal;
	}

	public void setRecordsTotal(Long recordsTotal) {
		this.recordsTotal = recordsTotal;
	}

	public Long getRecordsFiltered() {
		return recordsFiltered;
	}

	public void setRecordsFiltered(Long recordsFiltered) {
		this.recordsFiltered = recordsFiltered;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

}
